package net.osweb.crm.modules.customer.bean;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * Title:Buyercustomer.java
 * </p>
 * <p>
 * Description:买家/客户表
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author <a href="jincool.cao@126.com">jincao</a>
 * @version: 1.0
 * @time:2011年8月5日14:56:24
 */
@Entity
@Table(name = "CUSTOMER_BUYCUSTOMER")
public class BuyerCustomer implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9213074684222150006L;
	/**
	 * 编号
	 */
	private Integer id;
	/**
	 * 使用者id
	 */
	private Integer userid;
	/**
	 * 用户名
	 */
	private String name;
	/**
	 * 短名
	 */
	private String shortname;
	/**
	 * 生日
	 */
	private Timestamp birthday;
	/**
	 * 创建时间
	 */
	private Timestamp createtime;
	/**
	 * 特性
	 */
	private String property;
	/**
	 * 公司人数
	 */
	private Integer peoples;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 等级
	 */
	private Integer level;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 电话
	 */
	private Integer phone;
	/**
	 * 传真
	 */
	private Integer fax;
	/**
	 * 邮编
	 */
	private Integer zipcode;
	/**
	 * 网址
	 */
	private String webaddress;
	/**
	 * 地区/省
	 */
	private String province;
	/**
	 * 使用者查看时间
	 */
	private Timestamp userviewtime;
	/**
	 * 是否有效
	 */
	private Integer isavailability;
	/**
	 * 注释
	 */
	private String comment;

	// Constructors

	/** default constructor */
	public BuyerCustomer() {
	}

	/** minimal constructor */
	public BuyerCustomer(Integer userid) {
		this.userid = userid;
	}

	/** full constructor */
	public BuyerCustomer(Integer userid, String name, String shortname,
			Timestamp birthday, Timestamp createtime, String property,
			Integer peoples, Integer status, Integer level, String address,
			Integer phone, Integer fax, Integer zipcode, String webaddress,
			String province, Timestamp userviewtime, Integer isavailability,
			String comment) {
		this.userid = userid;
		this.name = name;
		this.shortname = shortname;
		this.birthday = birthday;
		this.createtime = createtime;
		this.property = property;
		this.peoples = peoples;
		this.status = status;
		this.level = level;
		this.address = address;
		this.phone = phone;
		this.fax = fax;
		this.zipcode = zipcode;
		this.webaddress = webaddress;
		this.province = province;
		this.userviewtime = userviewtime;
		this.isavailability = isavailability;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid", nullable = false)
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "name", length = 200)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "shortname", length = 50)
	public String getShortname() {
		return this.shortname;
	}

	public void setShortname(String shortname) {
		this.shortname = shortname;
	}

	@Column(name = "birthday", length = 19)
	public Timestamp getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Timestamp birthday) {
		this.birthday = birthday;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "property", length = 200)
	public String getProperty() {
		return this.property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	@Column(name = "peoples")
	public Integer getPeoples() {
		return this.peoples;
	}

	public void setPeoples(Integer peoples) {
		this.peoples = peoples;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "address", length = 11)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "phone")
	public Integer getPhone() {
		return this.phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	@Column(name = "fax")
	public Integer getFax() {
		return this.fax;
	}

	public void setFax(Integer fax) {
		this.fax = fax;
	}

	@Column(name = "zipcode")
	public Integer getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(Integer zipcode) {
		this.zipcode = zipcode;
	}

	@Column(name = "webaddress")
	public String getWebaddress() {
		return this.webaddress;
	}

	public void setWebaddress(String webaddress) {
		this.webaddress = webaddress;
	}

	@Column(name = "province", length = 100)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	} 

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
	
	@Column(name = "email")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}